<?php 
session_start();
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'../model/Service/AccountService.php';
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'../model/Context/BaseContext.php';
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'../model/ServiceResult/ServiceResult.php';
$context = new BaseContext();
$result = new ServiceResult();
$accountService = new AccountService();
?>
<div class="grid_5" style="width: 700px; height:400px; overflow: auto; margin:5px ">
	<div class="box round first">
		<h2>Term Of Reference</h2>
		<div class="block ">
			<?php echo $accountService->getTermOfReference($context, $result, 1);?>
		</div>	
	</div>
</div>
<div style="width: 700px;">
	<form action="index.php?type=web&action=readTerms" method="post">
		<input type="hidden" name="userID" value="<?php echo $_SESSION['user']['ID'];?>" />
		<center><button class="btn-icon btn-blue btn-check" type="submit" name="read"><span></span>I Agree With These Terms</button> <a href="index.php?type=l&action=logout"><button class="btn-icon btn-red btn-cross" type="button"><span></span>I Do Not Agree With These Terms</button></a></center>
	</form>
</div>